from flask import Flask
"""
访问路由:http://127.0.0.1:5000/json_d
返回数据
"""

app = Flask(__name__)


@app.route('/')
def h_w():
    return '127.0.0.1:5000/json_d 返回数据'

@app.route('/json_d')
def json_d():
    data = {"code":1001,"message":"参数不完整","data":{}
            }
    return data

app.run()